package utils

import (
	"crypto/md5"
	"fmt"
	"strings"
)

var salt = "fanqiechaodan"

func Md5Crypt(str string) string {
	slice := make([]string, 2)
	str = fmt.Sprintf(str+strings.Join(slice, "%v"), salt)
	return fmt.Sprintf("%x", md5.Sum([]byte(str)))
}
